-- GENERATED SPELL FOR [Earthen Stonebreaker] --


function spell0_7396(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_7396', 595, 1)
end

function spell1_7396(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7396', 610, 1)
end

function Sorts_7396(pUnit, Event)
local choix_sorts_7396 = math.random(0, 1)
if choix_sorts_7396 == 0 then
pUnit:RegisterEvent('spell0_7396', 1, 1)
end
if choix_sorts_7396 == 1 then
pUnit:RegisterEvent('spell1_7396', 1, 1)
end
end

function mob7396_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7396', math.random(1500, 3000), 1)
end

function mob7396_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7396_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7396_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7396, 1, 'mob7396_Action')
RegisterUnitEvent(7396, 2, 'mob7396_Leave')
RegisterUnitEvent(7396, 3, 'mob7396_Kill')
RegisterUnitEvent(7396, 4, 'mob7396_Die')
